package lab1;

public class Test10 {
    public static void main(String[] args) {
        int temp = 65;
        char c = (char) temp;
        int d = 1;                                  //控制前四排输出的字母数，从1个开始
        int h = 4;                                  //控制后四排输出的字母数，从4个开始

//输出前四排
        for (int a = 4; a > 0; a--) {               //a为排数
            for (int b = 1; b < a; b++) {           //b控制输出的空格数
                System.out.print(" ");

            }

            for (int e = 1; e <= d; e++) {          //e控制每行输出的字母数
                System.out.print(c + " ");
                c++;
            }
            d++;
            System.out.println();
        }

//输出后四排
        for (int i = 1; i <= 4; i++) {
            for (int j = 1; j < i; j++) {
                System.out.print(" ");
            }
            for (int e = 1; e <= h; e++) {
                System.out.print(c + " ");
                c++;
            }
            System.out.println();
            h--;
        }

    }
}
